package com.ruoyi.rel.service.impl;

import java.util.List;
import com.ruoyi.common.core.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.rel.mapper.AcupointImageCategoryRelMapper;
import com.ruoyi.rel.domain.AcupointImageCategoryRel;
import com.ruoyi.rel.service.IAcupointImageCategoryRelService;

/**
 * 图片-穴位分类关联Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-10-10
 */
@Service
public class AcupointImageCategoryRelServiceImpl implements IAcupointImageCategoryRelService 
{
    @Autowired
    private AcupointImageCategoryRelMapper acupointImageCategoryRelMapper;

    /**
     * 查询图片-穴位分类关联
     * 
     * @param id 图片-穴位分类关联主键
     * @return 图片-穴位分类关联
     */
    @Override
    public AcupointImageCategoryRel selectAcupointImageCategoryRelById(Long id)
    {
        return acupointImageCategoryRelMapper.selectAcupointImageCategoryRelById(id);
    }

    /**
     * 查询图片-穴位分类关联列表
     * 
     * @param acupointImageCategoryRel 图片-穴位分类关联
     * @return 图片-穴位分类关联
     */
    @Override
    public List<AcupointImageCategoryRel> selectAcupointImageCategoryRelList(AcupointImageCategoryRel acupointImageCategoryRel)
    {
        return acupointImageCategoryRelMapper.selectAcupointImageCategoryRelList(acupointImageCategoryRel);
    }

    /**
     * 新增图片-穴位分类关联
     * 
     * @param acupointImageCategoryRel 图片-穴位分类关联
     * @return 结果
     */
    @Override
    public int insertAcupointImageCategoryRel(AcupointImageCategoryRel acupointImageCategoryRel)
    {
        acupointImageCategoryRel.setCreateTime(DateUtils.getNowDate());
        return acupointImageCategoryRelMapper.insertAcupointImageCategoryRel(acupointImageCategoryRel);
    }

    /**
     * 修改图片-穴位分类关联
     * 
     * @param acupointImageCategoryRel 图片-穴位分类关联
     * @return 结果
     */
    @Override
    public int updateAcupointImageCategoryRel(AcupointImageCategoryRel acupointImageCategoryRel)
    {
        return acupointImageCategoryRelMapper.updateAcupointImageCategoryRel(acupointImageCategoryRel);
    }

    /**
     * 批量删除图片-穴位分类关联
     * 
     * @param ids 需要删除的图片-穴位分类关联主键
     * @return 结果
     */
    @Override
    public int deleteAcupointImageCategoryRelByIds(Long[] ids)
    {
        return acupointImageCategoryRelMapper.deleteAcupointImageCategoryRelByIds(ids);
    }

    /**
     * 删除图片-穴位分类关联信息
     * 
     * @param id 图片-穴位分类关联主键
     * @return 结果
     */
    @Override
    public int deleteAcupointImageCategoryRelById(Long id)
    {
        return acupointImageCategoryRelMapper.deleteAcupointImageCategoryRelById(id);
    }
}
